<div class="wrapper">
	<section class="column width6 first">
	<div class="form">

	<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>true,
    'enableClientValidation'=>true,
	)); ?>

	<?php echo $form->errorSummary($model,'请检查以下错误'); ?>

		<div class="row">
			<span class="labelThreeLetter">用户名</span>
			<?php echo $form->textField($model,'username'); ?>
		</div>

		<div class="row">
			<span class="labelTowLetter">密码</span>
			<?php echo $form->textField($model,'userpass',array('size'=>40)); ?>
		</div>

		<div class="row">
			<span class="labelFourLetter">电子邮件</span>
			<?php echo $form->textField($model,'useremail',array('size'=>40)); ?>
		</div>


		<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '新增' : '保存'); ?>
		</div>

		<?php $this->endWidget(); ?>

	</div>
	<!-- form --> </section>
</div>
